<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function sum() {
            console.log(typeof arguments);
            console.log(arguments);

            let temp = Array.from(arguments);
            temp.push('你好');
            console.log(temp);
        }
        sum(1, 2, 3, 4, 5);

        let obj = {
            0: '剑圣',
            1: true,
            2: 25,
            3: '船长',
            length: 4
        };

        let result = Array.from(obj);
        console.log(obj);
        result.push("张飞");
        console.log(result);
    </script>
</body>

</html>